@isTest
private class Batch_Test {

    static testMethod void myUnitTest() {
        //TestUtils.createUsers();

        // User ldc = [SELECT Id,Name FROM User WHERE Name = '用户1'];
        // User ldc2 = [SELECT Id,Name FROM User WHERE Name = '用户2'];

        // Id ldcProfile = [Select Id From Profile Where Name ='系统管理员' or Name='System Administrator'].Id;
       
           
           
        // User ldc = new User( Alias = 'samLdc7', 
        //                  Email = 'ldc@test.com.maike',
        //                  Emailencodingkey = 'UTF-8', 
        //                  Lastname = 'samLdc', 
        //                  Languagelocalekey = 'en_US',
        //                  Localesidkey = 'en_US', 
        //                  Profileid = ldcProfile, 
        //                  Country = 'United States',
        //                  IsActive = true,
        //                  SubCompany__c='四川省迈克实业有限公司',
        //                  UserDepartment__c='客户服务中心(工程部)',
        //                  Timezonesidkey = 'America/Los_Angeles', 
        //                  Username = 'ldc@test.com.maike' );
        // insert ldc;
        
        // User ldc2 = new User( Alias = 'samLdc7', 
        //         Email = 'ldc@test.com.maike',
        //         Emailencodingkey = 'UTF-8', 
        //         Lastname = 'samLdc', 
        //         Languagelocalekey = 'en_US',
        //         Localesidkey = 'en_US', 
        //         Profileid = ldcProfile, 
        //         Country = 'United States',
        //         IsActive = true,
        //         UserDepartment__c='客户服务中心(产品培训部)',
        //         Timezonesidkey = 'America/Los_Angeles', 
        //         Username = 'ldc2@test.com.maike' );
        // insert ldc2;

        
     //    Date dt=Date.today().addMonths(1);
     //    RecordType rd=[select id,DeveloperName from RecordType where DeveloperName='ServicePlanCase'];
     //    Case c=new Case();
     //    c.Subject='TestCase';
     //    c.RecordTypeId=rd.Id;
     //    c.Year__c=dt.year();
     //    c.Month__c=dt.month();
     //    c.OwnerId=ldc.Id;
     //    insert c;
        
     //    Case c2=new Case();
     //    c2.Subject='TestCase';
     //    c2.RecordTypeId=rd.Id;
     //    c2.Year__c=dt.year();
     //    c2.Month__c=dt.month();
     //    c2.OwnerId=ldc2.Id;
     //    insert c2;
        
     //    Account acc=TestUtils.createAccount();
     //    // acc.Name='testJ1228';
     //    acc.Iskeynote__c=true;
     // //    acc.Status__c = '审核通过';
     //    insert acc;
        
        Test.startTest();
        Batch_ServiceCaseNotice euclb = new Batch_ServiceCaseNotice();
        //database.executeBatch(euclb,300);
        
        Batch_ServiceCaseNoticeProduct euclb2=new Batch_ServiceCaseNoticeProduct();
        //database.executeBatch(euclb2,300);
        
        
        Test.stopTest();
        
        // ProductUpPrice__c pu=new ProductUpPrice__c();
        // pu.OwnerId=ldc.Id;
        // insert pu;
        
        //延长客户支付审批
        // ReceivableHeader__c rh = new ReceivableHeader__c();
        // rh.Account__c = acc.Id;
        // insert rh;

        // Receivable__c rv=new Receivable__c();
        // rv.ReceivableHeader__c = rh.Id;
        // insert rv;
        
        // ExtendAccount__c eac=new ExtendAccount__c();
        // eac.UDueDate__c=Date.Today();
        // eac.Status__c='草稿';
        // eac.Receivable__c=rv.Id;
        // eac.OwnerId=Ldc.Id;
        // insert eac;
        // eac.Status__c='审批通过';
        // update eac;
    }
}